// 数据库
import { Repository } from 'typeorm';
import { InjectRepository } from "@nestjs/typeorm";
import { summary } from 'src/entities/Wealth.entity'
import { WealthService } from 'src/eastWealth/wealth.service'
import * as colors from 'colors'

export class wsService {
  constructor(
    // 连接服务
    private readonly WealthService: WealthService,
    // @InjectRepository( summary )
    // private readonly jySummary: Repository<summary>
  ){}

  // 长连接获取summary数据
  async swGetSummaryTotal() {
    const sum = this.WealthService.getSummeryData({})
    console.log(colors.red('ws: 获取的全部数据！！！'), sum)
  }
}
